package com.spring.nio.core.exception.frame;

import com.spring.nio.service.common.Frame;

public class ExceptionFrame implements Frame {
    /**
     *
     * */

    public enum FrameType {
        EXCEPTION("EXCEPTION", "异常帧", "01111111");

        private String frameType;

        private String description;

        private String bit;

        public String getFrameType() {
            return frameType;
        }

        public String getDescription() {
            return description;
        }

        public String getBit() {
            return bit;
        }

        FrameType(String frameType, String description, String bit) {

            this.frameType = frameType;
            this.description = description;
            this.bit = bit;
        }
    }

    /**
     * 文件操作类型
     * */
    public enum ExceptionOperateType {
        CLOSE_SOCKET("CLOSE.SOCKET", "关闭通道", "00000001");

        private String operateType;

        private String description;

        private String bit;

        public String getOperateType() {
            return operateType;
        }

        public String getDescription() {
            return description;
        }

        public String getBit() {
            return bit;
        }

        ExceptionOperateType(String operateType, String description, String bit) {
            this.operateType = operateType;
            this.description = description;
            this.bit = bit;
        }
    }
}
